$(document).ready(function() {
	var tourneyId = $('#_tourneyId').val();
	$.ajax({
		url : LIST_TOURNEY_RESULT_AJAX_URL,
		type: 'post',
		iframe : true,
		data : {'tourneyInfo.tourneyId' : tourneyId},
		success : function(data) {
			$('#_tourney_result').html(data);
		},
		error : function(xhr, ajaxOptions, thrownError) {
			//alert(xhr.status);
			//alert(thrownError);
		}
	});
});

var color = "white";
function __swap(obj){
	color = obj.style.backgroundColor;
	obj.style.backgroundColor = '#eeeeee';
}
function __reSwap(obj){
	obj.style.backgroundColor = color;
}
function scrollbar(){
	var scrollBorderColor	=	"#7F8E91";
	var scrollFaceColor		=	"#F0F6FF";
	with (document.body.style) {
		scrollbarDarkShadowColor	=	scrollBorderColor;
		scrollbar3dLightColor		=	scrollBorderColor;
		scrollbarArrowColor			=	"black";
		scrollbarBaseColor			=	scrollFaceColor;
		scrollbarFaceColor			=	scrollFaceColor;
		scrollbarHighlightColor		=	scrollFaceColor;
		scrollbarShadowColor		=	scrollFaceColor;
		scrollbarTrackColor			=	"white";
	}			
}
function swapborder(obj) {
	obj.style.border = "0.2cm groove pink";
}
function reSwapborder(obj) {
	obj.style.border = "red";
}
function swap(obj) {
	obj.style.background = "#C9E9FC";
}
function reSwap(obj) {
	obj.style.background = "white";
}